package net.zjitc.dao;

import java.util.List;
import net.zjitc.pojo.CartItem;
import net.zjitc.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/15 15:53
 * @description:
 */
@Component
public interface UserCartDao {

  List<CartItem> findAll();

  List<CartItem> findByUid(Integer uid);

  int add(CartItem cartItem);

  CartItem findByUidAndPid(@Param("pid") int pid,@Param("uid")Integer uid);

  int update(CartItem ds_cartItem);

  void DeleteUser(String cartid);

  void clearCart(Integer uid);
}
